<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script>
            function f1(){
                let flag=confirm("是否确认删除");
                return flag;
            }


        </script>
    </head>
    <body>
        <a href="success.html" onclick="return false">删除</a>
        <a href="success.html" onclick="return f1()">删除</a>
    </body>
</html>